package com.demo.example.user.feign;

import com.demo.example.dto.GoodsDTO;
import com.demo.example.service.GoodsCompositeService;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created by azhai on 2017/4/5.
 */
@FeignClient(value = "goods", path = "/api/goods")
public interface GoodsClient extends GoodsCompositeService {

    @GetMapping("/{customerId}")
    List<GoodsDTO> getMyGoods(@PathVariable(name = "customerId") Long customerId);

}
